package 前K个高频元素;

import java.util.Arrays;

public class Test2 {
    public static void main(String[] args) {
        int[] nums = {1, 1, 1, 2, 2, 3};
        int k = 2;

        Solution2 solution = new Solution2();
        int[] result = solution.topKFrequent(nums, k);
        System.out.println(Arrays.toString(result));

    }
}
